from tortoise import BaseDBAsyncClient


async def upgrade(db: BaseDBAsyncClient) -> str:
    return """
        ALTER TABLE `saas_consumables_use` ADD `user_id` INT NOT NULL  COMMENT '用户id' DEFAULT 0;"""


async def downgrade(db: BaseDBAsyncClient) -> str:
    return """
        ALTER TABLE `saas_consumables_use` DROP COLUMN `user_id`;"""
